﻿using EkStudio.com.bean.xml.reflection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.RootInterface.DataSource
{
    public class BillSourceFields:BillObjectInterface
    {
        private string key;
        private string caption;
        private string type;
        private int size = 30;
        private string dtFormat = "";
        private bool fnNotNull = false;
        private string languageTexts;

        [Xml("caption")]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }

        [Xml("key")]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        
        [Xml("type")]
        public string Type
        {
            get
            {
                return type;
            }

            set
            {
                type = value;
            }
        }
        [Xml("size")]
        public int Size
        {
            get
            {
                return size;
            }

            set
            {
                size = value;
            }
        }
        [Xml("dtFormat")]
        public string DtFormat
        {
            get
            {
                return dtFormat;
            }

            set
            {
                dtFormat = value;
            }
        }
        [Xml("fnNotNull")]
        public bool FnNotNull
        {
            get
            {
                return fnNotNull;
            }

            set
            {
                fnNotNull = value;
            }
        }
        [Xml("languageTexts")]
        public string LanguageTexts
        {
            get
            {
                return languageTexts;
            }

            set
            {
                languageTexts = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                 
            }
        }

        public object Clone()
        {
            throw new NotImplementedException("数据源字段不提供复制");
        }
    }
}
